<template>
  <div class="menu">
    <div @click="fun()">
      <img src="@/assets/life/menu(1).gif" alt="" />
      <div>
        <h4>缴费</h4>
        <p>100+服务</p>
      </div>
    </div>
    <div>
      <img src="@/assets/life/menu(2).gif" alt="" />
      <div @click="fun1()">
        <h4>政务</h4>
        <p>掌上办</p>
      </div>
    </div>
    <div>
      <img src="@/assets/life/menu(3).gif" alt="" />
      <div>
        <h4>电影</h4>
        <p>最新最热</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    fun() {
      this.$router.push("/jiaofei");
    },
    fun1() {
      this.$router.push("/zhengwu");
    },
  },
};
</script>

<style lang="scss" scoped>
.menu {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin: 0 0 0.1rem 0rem;
  background-color: #eff;
  padding: 0.05rem 0rem;
  > div {
    display: flex;
    > img {
      opacity: 0.5;
      width: 0.3rem;
      height: 0.3rem;
    }
    > div {
      > h4 {
        font-size: 0.14rem;
      }
      > p {
        color: #999;
        font-size: 0.12rem;
      }
    }
  }
}
</style>